﻿/// <reference path="InputControl.js" />

var ____a;

var $ImageButton = TA.Turbo.Controls.ImageButton = function ImageButton(clientId)
{
	this.InputControl(clientId);
}
$ImageButton.Inherit($InputControl);

if (____a)
{
	$ImageButton.prototype = new $InputControl();
	$ImageButton.prototype.InputControl = new $InputControl();
}


$PropertyDefinition.Define($ImageButton, "Src", "R", "", {
	GetInitValue: function GetInitValue(obj)
	{
		return obj.get_Control().src;
	},
	OnChanged: function OnChanged()
	{
		this.get_Control().src = this._properties.Src;
	}
});

$PropertyDefinition.Define($ImageButton, "Alt", "A", "", {
	GetInitValue: function GetInitValue(obj)
	{
		return obj.get_Control().alt;
	},
	OnChanged: function OnChanged()
	{
		this.get_Control().alt = this._properties.Alt;
	}
});
